package com.new2i.dao.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.new2i.dao.able.SmsDao;
import com.new2i.dao.mapper.SmsMapper;
import com.new2i.model.SmsEntity;

/**
 * 短信模版数据库操作接口
 * 
 * @since 2015/09/06
 * @author 2i
 *
 */
@Repository("SmsDao")
public class SmsDaoImpl implements SmsDao{

	@Autowired
	private SmsMapper smsMapper;
	
	@Override
	public SmsEntity insertSms(SmsEntity sms) {
		smsMapper.insertSms(sms);
		return sms;
	}

	@Override
	public List<HashMap<String, Object>> selectSmsListByDU(int doctor_id, int user_id) {
		return smsMapper.selectSmsListByDU(doctor_id, user_id);
	}

}
